package common;

import java.io.Serializable;

/**
 * This class represents a structure of a user as it appears in the database.
 */

public class User implements Serializable{

	private static final long serialVersionUID = -8082623342381100809L;
	private int id;
	private String password;
	private String firstname;
	private String lastname;
	private String role;
	private String email;
	private String department;
	
	public User()
	{
		//
	}
	/**
	 * Get user ID
	 */
	public int getId() {
		return id;
	}
	/**
	 * Set user ID
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * Get user password
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * Set user password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	/**
	 * Get user first name
	 */
	public String getFirstname() {
		return firstname;
	}
	/**
	 * Set user first name
	 */
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	/**
	 * Get user last name
	 */
	public String getLastname() {
		return lastname;
	}
	/**
	 * Set user last name
	 */
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	/**
	 * Get user role
	 */
	public String getRole() {
		return role;
	}
	/**
	 * Set user role
	 */
	public void setRole(String role) {
		this.role = role;
	}
	/**
	 * Get user email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * Set user email
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * Get user department
	 */
	public String getDepartment() {
		return department;
	}
	/**
	 * Set user department
	 */
	public void setDepartment(String department) {
		this.department = department;
	}

}
